handleOpenFile
Handles opening a document file.
public void handleOpenFile (File fileName);
- fileName
- The name of the file to be opened.
DISCUSSION
This application-defined method is called when a document needs to be opened from the Finder. For example, this situation occurs when the user selects an Open menu item in the Finder or if the user double-clicks a file that bears the application's creator. You must register the method name by calling theregisterOpenDocumentHandler
method (page 44) when initializing the application. The handleOpenFile method is only useful if you have packaged your Java application using JBindery.SEE ALSO
TheregisterOpenDocumentHandler
method (page 44).